package com.lagou.utils;


import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
    public static String getTime() {
        Date date = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String format = sdf.format(date);
        System.out.println(format);
        return format;

    }
}
